package com.cai.oamanager.utils;

import org.apache.tomcat.util.buf.StringUtils;
import org.junit.Test;

import java.util.Arrays;
import java.util.Date;
import java.util.Random;
import java.util.UUID;

/**
 * @version 1.0
 * @author：蔡松坡
 * @date：2021/1/16 18 : 57
 * @package：com.cai.oamanager.utils
 */
public class Utils {

    public static String getUUID(){
        String uuid = UUID.randomUUID().toString();
        uuid = uuid.substring(0,uuid.indexOf("-"));
        return uuid;
    }
    public static Integer getNumber(){
        Random random = new Random();
        int i = random.nextInt(300000000-200000000)+200000000;
        return i;
    }

    public static Date getDate(){
        return new Date();
    }
}
